<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>

<f:subview id="category">
<h:outputText value="Products for Category " styleClass="title"/>
<h:outputText value="#{categoryPageBean.categoryName}" styleClass="title highLight2"/>
<h:dataTable id="table" value="#{categoryPageBean.pagedListHolder.pageList}" var="product"  
	styleClass="box" columnClasses=", rightAlign">
  <h:column>
    <h:panelGrid columns="1">
      <h:outputLink  value="product.jsf?productId=#{product.productId}">
          <h:outputText value="#{product.name}"/>
      </h:outputLink>
      <h:outputText value="#{product.description}"/>
    </h:panelGrid>
  </h:column>
</h:dataTable>
<h:panelGrid columns="1" width="100%" columnClasses="rightAlign">
  <f:verbatim>
    <h:outputLink  value="?page=previous" rendered="#{!categoryPageBean.pagedListHolder.firstPage}">
	  <h:outputText value=" Prev "/>
    </h:outputLink>
    <h:outputLink  value="?page=next" rendered="#{!categoryPageBean.pagedListHolder.lastPage}">
	  <h:outputText value=" Next "/>
    </h:outputLink>  
  </f:verbatim>
</h:panelGrid>
</f:subview>